<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0; padding: 0;
      box-sizing: border-box;
    }
    body {
      background-color: #000;
    }
    .bdr-img {
      color: white;
      text-align: center;
      padding: 5rem;
      margin: 2rem ;
      width: 78%;
      border: 50px solid #fff;
      border-image: url(./img/border_bg.png);
      /* border-image-slice 图片切割，四个角各切 50 大小 , 四个角中间部分默认拉伸*/
      border-image-slice: 50; 
      /* border-image-repeat 设置四个角中间部分，repeat 重复 , round 平铺 */
      border-image-repeat: round;
      /* 复合属性写法 */
      /* border-image: url(./img/border_bg.png) 50 round; */
    }
  </style>
</head>
<body>
  <div class="bdr-img">
    <p>
      Lorem ipsum dolor sit amet consectetur adipisicing elit.
      Eligendi praesentium rerum amet rem ad ducimus est laborum sint voluptatem.
      Facilis veniam praesentium, culpa voluptatem explicabo eaque dolores molestias! 
      Qui, 
      enim.
    </p>
  </div>
</body>
</html>